var orderRepository = (function() {
    var submitOrder = function (data) {
        $.ajax({
            type: 'POST',
            url: '/api/Order/Post',
            data: data,
            dataType: 'json',
            contentType: 'application/json',
            success: function (rep) {
                console.log(rep);
            },
            error: function (e) {
                console.log(e);
            }
        });
    };

    return {
        submitOrder: submitOrder
    };
})();